﻿namespace GenericHtml
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;

    public class JSONResult
    {
        public readonly static JSONResult Success = new JSONResult() { state = "ok" };
        public readonly static JSONResult Failed = new JSONResult() { state = "failed" };

        public string state { get; set; }
        public string msg { get; set; }

        public JSONResult() { }
        public JSONResult(string state, string msg)
        {
            this.state = state;
            this.msg = msg;
        }
    }
}